# coding:utf-8

class NotPathError(Exception):
    """文件无法找到错误"""

    def __init__(self, message):
        self.message = message


class FormatError(Exception):
    """格式化错误"""

    def __int__(self, message='need json format'):
        self.message = message


class NotFileError(Exception):
    """不是文件错误"""

    def __int__(self, message='this is not a file'):
        self.message = message
